#include <cstdio>
using namespace std;

#define VECTOR_SIZE 10

int main()
{
    int v[VECTOR_SIZE] = {0};
    for (int i = 0; i < VECTOR_SIZE; i++)
        scanf(" %d", v + i);
    for (int i = VECTOR_SIZE - 1; i >= 0; i--)
        printf("%d\n", v[i]);
    
    return 0;
}